package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: PengFei.He
 * @Date: 2024/12/29 20:33
 * @Function:
 */
@Data
@TableName("audit")
public class Audit implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("time")
    private String time;

    @TableField("day")
    private String day;

    @TableField("userId")
    private String userId;

    @TableField("status")
    private String status;

    @TableField("reason")
    private String reason;

    @TableField(exist = false) //不要和表映射
    private String userName;
}
